<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>

<meta name="generator" content="PHPDoctor 2RC2 (http://phpdoctor.sourceforge.net/)">
<meta name="when" content="Tue, 09 Dec 2008 09:11:43 +0000">

<link rel="stylesheet" type="text/css" href="../stylesheet.css">
<link rel="start" href="../overview-summary.html">

<title>NetworkResource (Moriarty)</title>

</head>
<body id="definition" onload="parent.document.title=document.title;">

<div class="header">
<h1>Moriarty</h1>
<ul>
<li><a href="../overview-summary.html">Overview</a></li>
<li><a href="../moriarty/package-summary.html">Package</a></li>
<li class="active">Class</li>
<li><a href="../moriarty/package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-all.html">Index</a></li>
</ul>
</div>

<div class="small_links">
<a href="../index.html" target="_top">Frames</a>
<a href="../moriarty/networkresource.html" target="_top">No frames</a>
</div>
<div class="small_links">
Summary: <a href="#summary_field">Field</a> | <a href="#summary_method">Method</a> | <a href="#summary_constr">Constr</a>
Detail: <a href="#detail_field">Field</a> | <a href="#detail_method">Method</a> | <a href="#summary_constr">Constr</a>
</div>
<hr>

<div class="qualifiedName">Moriarty.NetworkResource</div>

<h1>Class NetworkResource</h1>

<pre class="tree"><a href="../moriarty/simplegraph.html">SimpleGraph</a><br>  |<br>  +--<strong>NetworkResource</strong><br /></pre>

<hr>

<p class="signature">public  class <strong>NetworkResource</strong><br>extends <a href="../moriarty/simplegraph.html">SimpleGraph</a>

</p>

<div class="comment" id="overview_description"><p>
Represents a simple data resource that exists on the network.
/</p></div>

<hr>

<table id="summary_constr">
<tr><th colspan="2">Constructor Summary</th></tr>
<tr>
<td class="description"><p class="name"><a href="#NetworkResource()">NetworkResource</a>(string uri, <a href="../moriarty/credentials.html">Credentials</a> credentials)</p><p class="description">
Create a new instance of this class</p></td>
</tr>
</table>

<table id="summary_method">
<tr><th colspan="2">Method Summary</th></tr>
<tr>
<td class="type"> <a href="../moriarty/httpresponse.html">HttpResponse</a></td>
<td class="description"><p class="name"><a href="#delete_from_network()">delete_from_network</a>()</p><p class="description">
Issue an HTTP DELETE to the resource's URI</p></td>
</tr>
<tr>
<td class="type"> string</td>
<td class="description"><p class="name"><a href="#get_comment()">get_comment</a>()</p><p class="description">
Obtain the value of the resource's comment property</p></td>
</tr>
<tr>
<td class="type"> <a href="../moriarty/httpresponse.html">HttpResponse</a></td>
<td class="description"><p class="name"><a href="#get_from_network()">get_from_network</a>()</p><p class="description">
Perform an HTTP GET on the resource's URI to obtain an RDF/XML document containing data associated with the resource</p></td>
</tr>
<tr>
<td class="type"> string</td>
<td class="description"><p class="name"><a href="#get_label()">get_label</a>()</p><p class="description">
Obtain the value of the resource's label property</p></td>
</tr>
<tr>
<td class="type"> <a href="../moriarty/httpresponse.html">HttpResponse</a></td>
<td class="description"><p class="name"><a href="#put_to_network()">put_to_network</a>()</p><p class="description">
Construct an RDF/XML document containing data associated with the resource and send it using HTTP PUT to the resource's URI</p></td>
</tr>
<tr>
<td class="type"> void</td>
<td class="description"><p class="name"><a href="#set_comment()">set_comment</a>(mixed value, string comment)</p><p class="description">
Set the value of the resource's comment property</p></td>
</tr>
<tr>
<td class="type"> void</td>
<td class="description"><p class="name"><a href="#set_label()">set_label</a>(string label)</p><p class="description">
Set the value of the resource's label property</p></td>
</tr>
</table>

<table class="inherit">
<tr><th colspan="2">Methods inherited from Moriarty.SimpleGraph</th></tr>
<tr><td><a href="../moriarty/simplegraph.html#add_graph()">add_graph</a>, <a href="../moriarty/simplegraph.html#add_literal_triple()">add_literal_triple</a>, <a href="../moriarty/simplegraph.html#add_rdfxml()">add_rdfxml</a>, <a href="../moriarty/simplegraph.html#add_resource_triple()">add_resource_triple</a>, <a href="../moriarty/simplegraph.html#add_turtle()">add_turtle</a>, <a href="../moriarty/simplegraph.html#from_json()">from_json</a>, <a href="../moriarty/simplegraph.html#from_rdfxml()">from_rdfxml</a>, <a href="../moriarty/simplegraph.html#from_turtle()">from_turtle</a>, <a href="../moriarty/simplegraph.html#get_first_literal()">get_first_literal</a>, <a href="../moriarty/simplegraph.html#get_first_resource()">get_first_resource</a>, <a href="../moriarty/simplegraph.html#get_index()">get_index</a>, <a href="../moriarty/simplegraph.html#get_literal_triple_values()">get_literal_triple_values</a>, <a href="../moriarty/simplegraph.html#get_resource_triple_values()">get_resource_triple_values</a>, <a href="../moriarty/simplegraph.html#get_subject_property_values()">get_subject_property_values</a>, <a href="../moriarty/simplegraph.html#get_triples()">get_triples</a>, <a href="../moriarty/simplegraph.html#has_literal_triple()">has_literal_triple</a>, <a href="../moriarty/simplegraph.html#has_resource_triple()">has_resource_triple</a>, <a href="../moriarty/simplegraph.html#is_empty()">is_empty</a>, <a href="../moriarty/simplegraph.html#remove_all_triples()">remove_all_triples</a>, <a href="../moriarty/simplegraph.html#remove_property_values()">remove_property_values</a>, <a href="../moriarty/simplegraph.html#remove_resource_triple()">remove_resource_triple</a>, <a href="../moriarty/simplegraph.html#remove_triples_about()">remove_triples_about</a>, <a href="../moriarty/simplegraph.html#set_namespace_mapping()">set_namespace_mapping</a>, <a href="../moriarty/simplegraph.html#subject_has_property()">subject_has_property</a>, <a href="../moriarty/simplegraph.html#to_json()">to_json</a>, <a href="../moriarty/simplegraph.html#to_ntriples()">to_ntriples</a>, <a href="../moriarty/simplegraph.html#to_rdfxml()">to_rdfxml</a>, <a href="../moriarty/simplegraph.html#to_turtle()">to_turtle</a></td></tr></table>

<h2 id="detail_constr">Constructor Detail</h2>
<h3 id="NetworkResource()">NetworkResource</h3>
<code class="signature">public <strong>NetworkResource</strong>(string uri, <a href="../moriarty/credentials.html">Credentials</a> credentials)</code>
<div class="details">
<p>
Create a new instance of this class</p><dl>
<dt>Parameters:</dt>
<dd>uri - URI of the resource</dd>
<dd>credentials - the credentials to use for authenticated requests (optional)</dd>
</dl>
</div>

<hr>

<h2 id="detail_method">Method Detail</h2>
<h3 id="delete_from_network()">delete_from_network</h3>
<code class="signature">public  <a href="../moriarty/httpresponse.html">HttpResponse</a> <strong>delete_from_network</strong>()</code>
<div class="details">
<p>
Issue an HTTP DELETE to the resource's URI</p></div>

<hr>

<h3 id="get_comment()">get_comment</h3>
<code class="signature">public  string <strong>get_comment</strong>()</code>
<div class="details">
<p>
Obtain the value of the resource's comment property</p></div>

<hr>

<h3 id="get_from_network()">get_from_network</h3>
<code class="signature">public  <a href="../moriarty/httpresponse.html">HttpResponse</a> <strong>get_from_network</strong>()</code>
<div class="details">
<p>
Perform an HTTP GET on the resource's URI to obtain an RDF/XML document containing data associated with the resource</p></div>

<hr>

<h3 id="get_label()">get_label</h3>
<code class="signature">public  string <strong>get_label</strong>()</code>
<div class="details">
<p>
Obtain the value of the resource's label property</p></div>

<hr>

<h3 id="put_to_network()">put_to_network</h3>
<code class="signature">public  <a href="../moriarty/httpresponse.html">HttpResponse</a> <strong>put_to_network</strong>()</code>
<div class="details">
<p>
Construct an RDF/XML document containing data associated with the resource and send it using HTTP PUT to the resource's URI</p></div>

<hr>

<h3 id="set_comment()">set_comment</h3>
<code class="signature">public  void <strong>set_comment</strong>(mixed value, string comment)</code>
<div class="details">
<p>
Set the value of the resource's comment property</p><dl>
<dt>Parameters:</dt>
<dd>comment - the new comment</dd>
</dl>
</div>

<hr>

<h3 id="set_label()">set_label</h3>
<code class="signature">public  void <strong>set_label</strong>(string label)</code>
<div class="details">
<p>
Set the value of the resource's label property</p><dl>
<dt>Parameters:</dt>
<dd>label - the new label</dd>
</dl>
</div>

<hr>

<div class="header">
<h1>Moriarty</h1>
<ul>
<li><a href="../overview-summary.html">Overview</a></li>
<li><a href="../moriarty/package-summary.html">Package</a></li>
<li class="active">Class</li>
<li><a href="../moriarty/package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-all.html">Index</a></li>
</ul>
</div>

<div class="small_links">
<a href="../index.html" target="_top">Frames</a>
<a href="../moriarty/networkresource.html" target="_top">No frames</a>
</div>
<div class="small_links">
Summary: <a href="#summary_field">Field</a> | <a href="#summary_method">Method</a> | <a href="#summary_constr">Constr</a>
Detail: <a href="#detail_field">Field</a> | <a href="#detail_method">Method</a> | <a href="#summary_constr">Constr</a>
</div>
<hr>

<p id="footer">This document was generated by <a href="http://phpdoctor.sourceforge.net/">PHPDoctor: The PHP Documentation Creator</a></p>

</body>

</html>